import request from "@/utils/request";

/**
 * 查询订单
 * @param {*} data
 */
export function getOrder(params) {
  return request({
    url: "/getOrder",
    method: "get",
    params,
  });
}
// 新增订单
export function createOrderApi(params) {
  return request({
    url: "/createOrder",
    method: "get",
    params,
  });
}
// 删除订单
export function deleteOrder(params) {
  return request({
    url: "/deleteOrder",
    method: "get",
    params,
  });
}
// 修改订单
export function updateOrder(params) {
  return request({
    url: "/updateOrder",
    method: "get",
    params,
  });
}
// 获取所有店铺列表
export function getAllstore(params) {
  return request({
    url: "/getAllstore",
    method: "get",
    params,
  });
}
// 得到所有的拍摄类型
export function getAllType(params) {
  return request({
    url: "/getAllType",
    method: "get",
    params,
  });
}
// 获取某个店铺里销售人员
export function getAllEmployeeByStoreApi(params) {
  return request({
    url: "/getAllEmployeeByStore",
    method: "get",
    params,
  });
}
// 获取所有的拍摄基地
export function getAllBaseApi(params) {
  return request({
    url: "/getAllBase",
    method: "get",
    params,
  });
}
// 根据拍摄类型得到所有的系列（套系）
export function getAllSeriesByTypeIdApi(params) {
  return request({
    url: "/getAllSeriesByTypeId",
    method: "get",
    params,
  });
}
// 获取所有的相册产品
export function getAllAlbumApi(params) {
  return request({
    url: "/getAllAlbum",
    method: "get",
    params,
  });
}
// 获取所有的相框产品
export function getAllFrameApi(params) {
  return request({
    url: "/getAllFrame",
    method: "get",
    params,
  });
}
// 查询订单的所有状态
export function getAllOrderStatusApi(params) {
  return request({
    url: "/getAllOrderStatus",
    method: "get",
    params,
  });
}
// 查询订单的所有状态
export function addNewOrder(params) {
  return request({
    url: "/newOrder",
    method: "get",
    params,
  });
}
// 修改相框
export function updateFrameApi(data) {
  return request({
    url: "/updateFrame",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
// 新增相框
export function addFrameApi(data) {
  return request({
    url: "/addFrame",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
// 删除相框
export function deleteFrameApi(params) {
  return request({
    url: "/deleteFrame",
    method: "get",
    params,
  });
}
// 修改相册
export function updateAlbumApi(data) {
  return request({
    url: "/updateAlbum",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
// 新增相册
export function addAlbumApi(data) {
  return request({
    url: "/addAlbum",
    method: "post",
    data,
    headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  });
}
// 删除相册
export function deleteAlbumApi(params) {
  return request({
    url: "/deleteAlbum",
    method: "get",
    params,
  });
}
